package com.fare.taluo.application;

import java.util.Date;
import java.util.List;
import java.util.Locale;

import com.fare.taluo.vo.core.FreightPriceAnalyseAlertConfigVo;


public interface FreightPriceAnalyseAlertConfigApplication {
	public void saveOrUpdate(FreightPriceAnalyseAlertConfigVo fcVo) throws Exception;	
	
	public List<FreightPriceAnalyseAlertConfigVo> getAllAnalyseAlertByC(
			String alertType ,Date createTime,Date endCreateTime,Long userId);
	/**
	 * 根据条件获得预警配置，只获得唯一的一条
	 * @param airCompany 航空公司名称(目前没有关联ID，先以名称进行查询)
	 * @param fromCityCode 出发城市三字码
	 * @param toCityCode 到达城市三字码
	 * @return 配置项
	 */
	public FreightPriceAnalyseAlertConfigVo getConfigByLine(String airCompany, String fromCityCode, String toCityCode, Long userId);
	
	public FreightPriceAnalyseAlertConfigVo getCabinChangeConfig(String flightNo,String flightDate,Long userId);
	
	public FreightPriceAnalyseAlertConfigVo getSpreadConfig(String flightNo,String flightDate,String contrastSourceKey, Long userId);
	
	public FreightPriceAnalyseAlertConfigVo getContrastConfig(String flightNo,String contrastFlightNo,String flightDate,Long userId);
	
	public List<FreightPriceAnalyseAlertConfigVo> getAllAnalyseAlert(Long userID);
	
	public List<FreightPriceAnalyseAlertConfigVo> getAllAnalyseAlert(Long userID,Locale locale);
	
	public FreightPriceAnalyseAlertConfigVo getFreightPriceAnalyseAlertConfig(Long id);
	
	public void delete(Long id) throws Exception;
	
	
}
